﻿using System;

namespace K9Nano.Share
{
    /// <summary>
    /// 性别
    /// </summary>
    public enum EGenderType
    {
        None = 0,
        Male = 1,
        Female = 2,
    }

    public static class GenderExtensions
    {
        public static string GetGender(this EGenderType type)
        {
            switch (type)
            {
                case EGenderType.Male:
                    return "男";
                case EGenderType.Female:
                    return "女";
                default:
                    return "未知";
            }
        }
    }
}